<?php

declare(strict_types=1);
/**
 * This file is part of hyperf-ext/sms.
 *
 * @link     https://github.com/hyperf-ext/sms
 * @contact  eric@zhu.email
 * @license  https://github.com/hyperf-ext/sms/blob/master/LICENSE
 */
namespace cms\sms\service;

// use HyperfExt\Contract\ShouldQueue;
use HyperfExt\Sms\Contracts\SenderInterface;
use HyperfExt\Sms\Smsable;

class VerificationCodeService extends Smsable
{
    /**
     * Create a new SMS message instance.
     */
    public function __construct()
    {
        //
    }

    /**
     * Build the SMS message.
     */
    public function build(SenderInterface $sender): void
    {
        // 不带签名使用配置
        // $this->template('sms-tmpl-TuEOTX86xxxx')->with(['name' => 'awen']);
        // 带签名
        $this->template('sms-tmpl-ZHFXcnxxx')->with(['name' => 'awen'])->signature('sms-sign-RmFfnu564xxx');
        // 不带签名,模板没有变量也要传变量？
        // $this->template('sms-tmpl-AIgLRm0xxx')->with('now', '');
    }
}
